package com.ywjt.platformbusiness.order.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.base.BaseActivity;
import com.ywjt.platformbusiness.widget.ReasonBottomDialog;

import org.w3c.dom.Text;

public class ReturnMoneyApplyActivity extends BaseActivity implements View.OnClickListener {
    private TextView tvSubmit;
    private LinearLayout llReason;


    public static void actionStart(Context context) {
        Intent intent = new Intent(context, ReturnMoneyApplyActivity.class);
        context.startActivity(intent);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tvSubmit:
                ReturnApplySuccessActivity.actionStart(this);
                break;
            case R.id.llReason:
                //退款原因
                ReasonBottomDialog reasonBottomDialog=new ReasonBottomDialog();
                reasonBottomDialog.show(getSupportFragmentManager());
                break;
        }
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.return_money_apply;
    }

    @Override
    protected void initView() {
        setTitleText("申请");
        llReason=findViewById(R.id.llReason);
        tvSubmit=findViewById(R.id.tvSubmit);
        tvSubmit.setOnClickListener(this::onClick);
        llReason.setOnClickListener(this::onClick);
    }

    @Override
    protected void initData() { }


    @Override
    protected int getTitleBarType() {
        return 0;
    }
}
